"use strict";
module.exports = function (sequelize, DataTypes) {
    var DistMileResult = sequelize.define("DistMileResult", {
        configId: {
            type: DataTypes.INTEGER,
            field: 'ConfigId'
        },
        deviceId: {
            type: DataTypes.INTEGER,
            field: 'DeviceId'
        },
        id: {
            type: DataTypes.INTEGER,
            field: 'Id',
            autoIncrement: true,
            primaryKey: true
        },
        value: {
            type: DataTypes.DOUBLE,
            field: 'Value'
        },
        date: {
            type: DataTypes.DATE,
            field: 'Date'
        }
    }, {
            freezeTableName: true,
            timestamps: false
        });

    return DistMileResult;
}